* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.time-display {
    font-size: 1rem;
    font-weight: 300;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.time-display i {
    margin-right: 12px;
    font-size: 1.5rem;
    color: #3498db;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* 列表视图样式 */
.files-list {
    width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.file-list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.file-list-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.file-list-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    object-fit: contain;
}

.file-list-name {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.file-list-type {
    font-size: 12px;
    color: #7f8c8d;
    width: 150px;
    text-align: right;
}

@media (max-width: 768px) {
    .file-list-type {
        display: none;
    }
}

.file-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    /* 初始状态融入背景 */
    background: transparent;
    border: 1px solid transparent;
    opacity: 0.9;
    position: relative;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    z-index: 10;
}
.file-item_hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    z-index: 10;
}

.file-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s;
}

.file-item:hover .file-icon {
    transform: scale(1.1);
}

.file-name {
    text-align: center;
    font-size: 14px;
    word-break: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    color: #2c3e50;
}

.file-type {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: 400;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-size: 14px;
    color: #34495e;
}

/* 路径导航样式 */
.path-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin: 0 20px;
}

.path-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s;
}

.path-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #3498db;
}

.path-btn i {
    font-size: 16px;
}

.breadcrumb {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    white-space: nowrap;
    overflow-x: auto;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    color: #3498db;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.breadcrumb-item:after {
    content: '›';
    margin: 0 8px;
    color: #7f8c8d;
}

.breadcrumb-item:last-child:after {
    content: '';
    margin: 0;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .breadcrumb-item:after {
        margin: 0 4px;
    }
}

/* 视图切换按钮样式 */
.view-toggle {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .path-navigation {
        margin: 10px 0;
        order: 3;
        width: 100%;
    }
    
    .header {
        flex-wrap: wrap;
    }
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s;
}

.view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #3498db;
}

.view-btn.active {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.view-btn i {
    font-size: 16px;
}

/* 右键菜单样式 */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
    display: none;
}

.context-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.context-menu-item i {
    margin-right: 10px;
    width: 20px;
    color: #3498db;
}

.context-menu-item:hover {
    background: #f0f7ff;
}

.context-menu-item.delete:hover {
    background: #ffecec;
    color: #e74c3c;
}

.context-menu-item.delete:hover i {
    color: #e74c3c;
}

/* 重命名输入框 */
.rename-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.rename-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rename-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 500;
}

.rename-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.rename-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.rename-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.rename-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.2s;
}

.rename-btn.confirm {
    background: #3498db;
    color: white;
}

.rename-btn.confirm:hover {
    background: #2980b9;
}

.rename-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.rename-btn.cancel:hover {
    background: #e0e0e0;
}

/* 删除确认对话框 */
.delete-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.delete-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.delete-container h3 {
    margin-bottom: 15px;
    color: #e74c3c;
    font-weight: 500;
}

.delete-container p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.5;
}

.delete-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.delete-btn {
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.2s;
}

.delete-btn.confirm {
    background: #e74c3c;
    color: white;
}

.delete-btn.confirm:hover {
    background: #c0392b;
}

.delete-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.delete-btn.cancel:hover {
    background: #e0e0e0;
}
.search_box{
    width: 30%;
    padding: 8px 12px;
    background: #ffffffb3;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
}
.search_box input{
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background :unset;
}

/* 设置按钮样式 */
.settings-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    color: #333;
    margin-left: 8px;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* 主题设置面板 */
.theme-settings-panel {
    margin: auto;
    width: 400px;
    max-width: 90%;
    height: 90vh;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.theme-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-start;
}

.theme-card {
    width: calc(33.33% - 7px); /* 3列布局，减去gap */
    min-width: 100px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: calc(33.33% * 3/4); /* 保持4:3比例 */
    height: 0;
    background: rgba(50, 50, 70, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.theme-card:hover {
    background: rgba(60, 60, 80, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-card.active {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.3);
}

.theme-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.theme-preview {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-card span {
    text-align: center;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e0e0e0;
    font-size: 13px;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.settings-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.system-theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #333;
}

/* 开关控件 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #5dade2;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 主题卡片 */
.theme-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-start;
}

.theme-card {
    width: calc(33.33% - 7px); /* 3列布局，减去gap */
    min-width: 100px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: calc(33.33% * 3/4); /* 保持4:3比例 */
    height: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-card.active {
    border-color: #5dade2;
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.3);
}

.theme-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.theme-preview {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.theme-card:hover .theme-preview img {
    transform: scale(1.05);
}

.theme-card span {
    text-align: center;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-size: 13px;
}

@media (max-width: 600px) {
    .theme-card {
        width: calc(50% - 5px); /* 在小屏幕上显示2列 */
        padding-bottom: calc(50% * 3/4);
    }
}

@media (max-width: 400px) {
    .theme-card {
        width: 100%; /* 在非常小的屏幕上显示1列 */
        padding-bottom: calc(100% * 3/4);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .file-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 1.4rem;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .file-item {
        padding: 15px 10px;
    }
    
    .file-icon {
        width: 48px;
        height: 48px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .context-menu {
        min-width: 160px;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .file-item {
        padding: 15px 10px;
    }
    
    .file-icon {
        width: 48px;
        height: 48px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .context-menu {
        min-width: 160px;
    }
}